package com.swu.pad.comment.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.swu.pad.comment.entity.Comment;

public interface CommentDao extends JpaRepository<Comment, String> {

	public List<Comment> findByAssignmentPadId(String assignmentPadId);

	public List<Comment> findByAssignmentPadIdAndAuthorId(String assignmentPadId, String authorId);

	public List<Comment> findByAssignmentPadIdAndAuthorIdAndQuestionId(String assignmentPadId, String authorId, String questionId);

	public void deleteByAssignmentPadId(String assignmentPadId);

	public List<Comment> findByAssignmentPadIdAndQuestionId(String assignmentPadId, String questionId);
}
